
using System;
using System.Collections.Generic;

namespace Mistral.SecureDrive.DDL
{
	class Factory
	{
		static Dictionary<Uri,FileLink> _fileLinks = new Dictionary<Uri, FileLink>( );

		public static FileLink GetFileLink( string fileName )
		{
			FileLink fileLink;
			Uri uri = new Uri( fileName );
			if( !_fileLinks.TryGetValue( uri, out fileLink ) )
			{
				fileLink = new FileLink( fileName );
				_fileLinks.Add( uri, fileLink );
			}
			
			return fileLink;
		}
	}
}
